package cn.dhnep.demo.service.impl;

import cn.dhnep.demo.pojo.Homepageimg;
import cn.dhnep.demo.mapper.SlideshowimgMapper;
import cn.dhnep.demo.service.SlideshowimgService;
import cn.dhnep.demo.util.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dhn
 * @since 2021-08-19
 */
@Service
public class SlideshowimgServiceImpl extends ServiceImpl<SlideshowimgMapper, Homepageimg> implements SlideshowimgService {

    @Resource
    private SlideshowimgMapper slideshowimgMapper;

    @Override
    public int addimges(Homepageimg homepageimg) {
        return slideshowimgMapper.addimges(homepageimg);
    }

    @Override
    public List<Homepageimg> selectPageList(Page page) {
        return slideshowimgMapper.selectPageList(page);
    }

    @Override
    public Integer selectPageCount(Page page) {
        return slideshowimgMapper.selectPageCount(page);
    }

    @Override
    public int deleteimges(int id) {
        return slideshowimgMapper.deleteimges(id);
    }
}
